(function(){
    class Money{
        name:string;
        num: number;
        constructor(name:string,num:number) {
            this.name = name;
            this.num = num;
        }
        show(){
            console.log(`我是${this.name},我有${this.num}万`);
        }
    }
    class A extends Money{
        show() {
            console.log("我继承到了")
        }
        say() {
            console.log("你好啊")
        }
    }
    let aa = new A('小红',200);
    console.log(aa,'aa')
    aa.show();
    aa.say();
})()